package OOday01;
/*
学生类
*/
public class Student {
    String stuId;
    String stuName;
    int age;
    String className;
//构造
    public Student(String stuId, String stuName, int age, String className) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.age = age;
        this.className = className;
    }

    public Student() {
    }

    void study(){
        System.out.println(this.stuName+"在学习");
    }
    void sayHi(){
        System.out.println("你好，我叫"+this.stuName+"我今年"+this.age+"岁了");
    }
    void playWith(String otherStuName){
        System.out.println(this.stuName+"和"+otherStuName+"一起玩呢");
    }
}
